package com.lch.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/26  22:46
 * 描述:
 */
@RestController
public class TestController {

    private Logger logger=LoggerFactory.getLogger("T2");

    @RequestMapping("test01")
    public String test01(){
        logger.info("========记录日志信息===="+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        System.out.println("==================");
        return "0000";
    }

}
